package com.fifth.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 审查表
 * </p>
 *
 * @author 第五组
 * @since 2022-09-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("e_examine")
@ApiModel(value = "Examine对象", description = "审查表")
public class Examine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("审查id")
    private String id;

    @ApiModelProperty("店铺id")
    private String bid;

    @ApiModelProperty("审核人(管理员)")
    private String checkman;

    @DateTimeFormat(pattern = "yyyy-MM-dd 'T' HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("审查时间")
    private LocalDateTime gmtCreate;

    @ApiModelProperty("停业原因")
    private String msg;

    @TableLogic  //逻辑列
    @ApiModelProperty("逻辑删除")
    private int isDeleted;

    @ApiModelProperty("审查状态 0 通过 1 审查不合格")
    private String state;

    @TableField(exist = false)
    private String sname;

    @TableField(exist = false)
    private String ename;
}
